package com.mes.device.mapper;

import com.mes.pojo.device.Upkeep;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author 张喆
 * @Company
 * @Description
 * @Time 2024/10/19 10:08
 */
@Mapper
public interface UpkeepMapper {
    List<Upkeep> selectAll(Upkeep upkeep);
    Upkeep selectByUpkeepName(String upkeepName);
    Upkeep selectByUpkeepId(String upkeepId);
    List<String> selectConnectDevice(String upkeepId);
    List<String> selectConnectUpkeepType(String upkeepId);
    String selectMaxId();
    Integer insertUpkeep(Upkeep upkeep);
    Integer updateUpkeep(Upkeep upkeep);
    Integer insertUpkeepConnectDevice(String upkeepId, String deviceId);
    Integer insertUpkeepConnectUpkeepType(String upkeepId, String upkeepTypeId);
    Integer deleteUpkeepConnectDevice(String upkeepId,String deviceId);
    Integer deleteUpkeepConnectUpkeepType(String upkeepId,String upkeepTypeId);
}
